<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Camada de Apresentacao: interface_apresentacao.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Camada de Apresentacao
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">interface_apresentacao.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="interface__apresentacao_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * interface_apresentacao.h</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> *  Created on: 12/11/2012</span>
<a name="l00005"></a>00005 <span class="comment"> */</span>
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 
<a name="l00009"></a>00009 <span class="comment">/* Controle visando evitar inclusoes multiplas.*/</span>
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef MOD_APRESENTACAO</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define MOD_APRESENTACAO</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span>
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 
<a name="l00015"></a>00015 <span class="comment">/* Controle visando identificar o servidor.*/</span>
<a name="l00016"></a>00016 <span class="preprocessor">#ifdef SERVIDOR_APRESENTACAO</span>
<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">#define EXT_MOD_APRESENTACAO</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00019"></a><a class="code" href="interface__apresentacao_8h.html#a5c73af4328cf75900b10dd2bb1f8273c">00019</a> <span class="preprocessor"></span><span class="preprocessor">#define EXT_MOD_APRESENTACAO extern</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;stdbool.h&gt;</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 
<a name="l00026"></a><a class="code" href="structusuario.html">00026</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structusuario.html">usuario</a>
<a name="l00027"></a>00027 {
<a name="l00028"></a><a class="code" href="structusuario.html#a01de5ae3ba28964271dc90646500b187">00028</a>         <span class="keywordtype">char</span> <a class="code" href="structusuario.html#a01de5ae3ba28964271dc90646500b187">nome_de_usuario</a>[11];
<a name="l00029"></a><a class="code" href="structusuario.html#aafe72b5931a7163331abb140199ea718">00029</a>         <span class="keywordtype">char</span> <a class="code" href="structusuario.html#aafe72b5931a7163331abb140199ea718">senha</a>[7];
<a name="l00030"></a><a class="code" href="structusuario.html#a9b14f633b20de4dfb690189203b4a335">00030</a>         <span class="keywordtype">int</span> <a class="code" href="structusuario.html#a9b14f633b20de4dfb690189203b4a335">identificador</a>;
<a name="l00031"></a><a class="code" href="structusuario.html#af57a41661a6401dbb4044b8c6a45e194">00031</a>         <span class="keyword">struct </span><a class="code" href="structusuario.html">usuario</a> *<a class="code" href="structusuario.html#af57a41661a6401dbb4044b8c6a45e194">prox</a>;
<a name="l00032"></a>00032 } <a class="code" href="interface__apresentacao_8h.html#ac283d7b1104ab8906c26835ce6c96b35">Usuario</a>;
<a name="l00033"></a>00033 
<a name="l00034"></a><a class="code" href="structpostagem.html">00034</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structpostagem.html">postagem</a>
<a name="l00035"></a>00035 {
<a name="l00036"></a><a class="code" href="structpostagem.html#a1765d22920c3ccf4214f73fc8c870e5f">00036</a>         <span class="keywordtype">int</span> <a class="code" href="structpostagem.html#a873192c9629e520acce22db045912d7c">identificador_postagem</a>, <a class="code" href="structpostagem.html#a91aaf329c66318c3f4eb148e0f658f5f">identificador_autor</a>, <a class="code" href="structpostagem.html#a1765d22920c3ccf4214f73fc8c870e5f">num_avaliacoes</a>;
<a name="l00037"></a><a class="code" href="structpostagem.html#a95fa360d66ec522a899fda00011374f4">00037</a>         <span class="keywordtype">float</span> <a class="code" href="structpostagem.html#a95fa360d66ec522a899fda00011374f4">media_avaliacoes</a>;
<a name="l00038"></a><a class="code" href="structpostagem.html#ae66cb9c6c2b39074e0a5500d15e7c88d">00038</a>         <span class="keywordtype">char</span> <a class="code" href="structpostagem.html#ae66cb9c6c2b39074e0a5500d15e7c88d">texto_postagem</a>[31], <a class="code" href="structpostagem.html#a527fff06c144d3775b559f396c7af252">data</a>[11];
<a name="l00039"></a><a class="code" href="structpostagem.html#a5696ca9b59a8072dd2d5f983e974051d">00039</a>         <span class="keyword">struct </span><a class="code" href="structpostagem.html">postagem</a> *<a class="code" href="structpostagem.html#a5696ca9b59a8072dd2d5f983e974051d">prox</a>;
<a name="l00040"></a>00040 } <a class="code" href="interface__apresentacao_8h.html#a36e97d4a0bc6743934bb404e04d7d9aa">Postagem</a>;
<a name="l00041"></a>00041 
<a name="l00042"></a><a class="code" href="structcomentario.html">00042</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structcomentario.html">comentario</a>
<a name="l00043"></a>00043 {
<a name="l00044"></a><a class="code" href="structcomentario.html#aa6656d70bef54316e7d1dcd917033ff2">00044</a>         <span class="keywordtype">int</span> <a class="code" href="structcomentario.html#aa6656d70bef54316e7d1dcd917033ff2">identificador_postagem</a>, <a class="code" href="structcomentario.html#ac2b0361a1bf655296029efba61429106">identificador_comentario</a>, <a class="code" href="structcomentario.html#abcbaf78366f12efa13e096c15b8b1bcd">identificador_autor</a>;
<a name="l00045"></a><a class="code" href="structcomentario.html#a16c45a02d57ac9d90ef4b5ca5a54e5bc">00045</a>         <span class="keywordtype">char</span> <a class="code" href="structcomentario.html#a16c45a02d57ac9d90ef4b5ca5a54e5bc">texto_comentario</a>[21], <a class="code" href="structcomentario.html#af56e69507f29e09d00c25e2e3720a4f0">data</a>[11];
<a name="l00046"></a><a class="code" href="structcomentario.html#a81bd77aace1ba695e62a4d553308aa22">00046</a>         <span class="keyword">struct </span><a class="code" href="structcomentario.html">comentario</a> *<a class="code" href="structcomentario.html#a81bd77aace1ba695e62a4d553308aa22">prox</a>;
<a name="l00047"></a>00047 } <a class="code" href="interface__apresentacao_8h.html#ac8279062b116a433bc0ec47566ad1074">Comentario</a>;
<a name="l00048"></a>00048 
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 <span class="comment">/* Declaracoes dos prototipos das funcoes.*/</span>
<a name="l00051"></a>00051 <a class="code" href="interface__apresentacao_8h.html#a5c73af4328cf75900b10dd2bb1f8273c">EXT_MOD_APRESENTACAO</a> <span class="keywordtype">char</span> <a class="code" href="interface__apresentacao_8h.html#adfc5469731188575dcde82aa2c8c91c7">executar</a>();
<a name="l00052"></a>00052 <a class="code" href="interface__apresentacao_8h.html#a5c73af4328cf75900b10dd2bb1f8273c">EXT_MOD_APRESENTACAO</a> <span class="keywordtype">char</span> <a class="code" href="interface__apresentacao_8h.html#aafd17ab334dd3322fca67a2034dde360">executalogin</a>();
<a name="l00053"></a>00053 <a class="code" href="interface__apresentacao_8h.html#a5c73af4328cf75900b10dd2bb1f8273c">EXT_MOD_APRESENTACAO</a> <span class="keywordtype">int</span> <a class="code" href="interface__apresentacao_8h.html#aa33dd5e6a0ab2d0a3213430d26104786">cadastrar_usuario</a>(<span class="keywordtype">char</span> nome_de_usuario[11], <span class="keywordtype">char</span> senha[7], <span class="keywordtype">int</span> identificador);
<a name="l00054"></a>00054 <a class="code" href="interface__apresentacao_8h.html#a5c73af4328cf75900b10dd2bb1f8273c">EXT_MOD_APRESENTACAO</a> <span class="keywordtype">int</span> <a class="code" href="interface__apresentacao_8h.html#a396478309314a60489c969def4d6263c">autenticar_usuario</a>(<span class="keywordtype">char</span> nome_de_usuario[11], <span class="keywordtype">char</span> senha[7]);
<a name="l00055"></a>00055 <a class="code" href="interface__apresentacao_8h.html#a5c73af4328cf75900b10dd2bb1f8273c">EXT_MOD_APRESENTACAO</a> <span class="keywordtype">int</span> <a class="code" href="interface__apresentacao_8h.html#a1f96070074c7de6920d06be36a6a4d6c">alterar_cadastro</a>(<span class="keywordtype">char</span> nome_de_usuario[11], <span class="keywordtype">char</span> senha[7], <span class="keywordtype">char</span> novo_nome_de_usuario[11], <span class="keywordtype">char</span> nova_senha[7]);
<a name="l00056"></a>00056 <a class="code" href="interface__apresentacao_8h.html#a5c73af4328cf75900b10dd2bb1f8273c">EXT_MOD_APRESENTACAO</a> <span class="keywordtype">int</span> <a class="code" href="interface__apresentacao_8h.html#abbc287215d87c4927eff968dc121d25a">encerrar_cadastro</a>(<span class="keywordtype">char</span> nome_de_usuario[11], <span class="keywordtype">char</span> senha[7]);
<a name="l00057"></a>00057 <a class="code" href="interface__apresentacao_8h.html#a5c73af4328cf75900b10dd2bb1f8273c">EXT_MOD_APRESENTACAO</a> <span class="keywordtype">int</span> <a class="code" href="interface__apresentacao_8h.html#a5e78df45023a303c5d0a77f99f4e57c4">listar_usuarios</a>();
<a name="l00058"></a>00058 
<a name="l00059"></a>00059 <a class="code" href="interface__apresentacao_8h.html#a5c73af4328cf75900b10dd2bb1f8273c">EXT_MOD_APRESENTACAO</a> <span class="keywordtype">int</span> <a class="code" href="interface__apresentacao_8h.html#ad8b3bc12e68abc840770c26ab71b52c8">cadastrar_postagem</a>(<span class="keywordtype">char</span> texto_postagem[31], <span class="keywordtype">int</span> <a class="code" href="structcomentario.html#aa6656d70bef54316e7d1dcd917033ff2">identificador_postagem</a>, <span class="keywordtype">bool</span> comentavel, <span class="keywordtype">int</span> <a class="code" href="structcomentario.html#abcbaf78366f12efa13e096c15b8b1bcd">identificador_autor</a>, <span class="keywordtype">char</span> <a class="code" href="structcomentario.html#af56e69507f29e09d00c25e2e3720a4f0">data</a>[11]);
<a name="l00060"></a>00060 <a class="code" href="interface__apresentacao_8h.html#a5c73af4328cf75900b10dd2bb1f8273c">EXT_MOD_APRESENTACAO</a> <span class="keywordtype">int</span> <a class="code" href="interface__apresentacao_8h.html#a13a5542862e60cf0e7ef1a6af8907f74">cadastrar_comentario</a>(<span class="keywordtype">char</span> <a class="code" href="structcomentario.html#a16c45a02d57ac9d90ef4b5ca5a54e5bc">texto_comentario</a>[21], <span class="keywordtype">int</span> <a class="code" href="structcomentario.html#ac2b0361a1bf655296029efba61429106">identificador_comentario</a>, <span class="keywordtype">int</span> <a class="code" href="structcomentario.html#aa6656d70bef54316e7d1dcd917033ff2">identificador_postagem</a>, <span class="keywordtype">int</span> <a class="code" href="structcomentario.html#abcbaf78366f12efa13e096c15b8b1bcd">identificador_autor</a>, <span class="keywordtype">char</span> <a class="code" href="structcomentario.html#af56e69507f29e09d00c25e2e3720a4f0">data</a>[11]);
<a name="l00061"></a>00061 <a class="code" href="interface__apresentacao_8h.html#a5c73af4328cf75900b10dd2bb1f8273c">EXT_MOD_APRESENTACAO</a> <span class="keywordtype">int</span> <a class="code" href="interface__apresentacao_8h.html#adf8870d9c3275bb7d077cefcbea69108">remover_postagem</a>(<span class="keywordtype">int</span> <a class="code" href="structcomentario.html#aa6656d70bef54316e7d1dcd917033ff2">identificador_postagem</a>, <span class="keywordtype">int</span> <a class="code" href="structcomentario.html#abcbaf78366f12efa13e096c15b8b1bcd">identificador_autor</a>);
<a name="l00062"></a>00062 <a class="code" href="interface__apresentacao_8h.html#a5c73af4328cf75900b10dd2bb1f8273c">EXT_MOD_APRESENTACAO</a> <span class="keywordtype">int</span> <a class="code" href="interface__apresentacao_8h.html#a3a8ebc1d48705fead4e867cc7bea1c01">remover_comentario</a>(<span class="keywordtype">int</span> <a class="code" href="structcomentario.html#ac2b0361a1bf655296029efba61429106">identificador_comentario</a>, <span class="keywordtype">int</span> <a class="code" href="structcomentario.html#abcbaf78366f12efa13e096c15b8b1bcd">identificador_autor</a>);
<a name="l00063"></a>00063 <a class="code" href="interface__apresentacao_8h.html#a5c73af4328cf75900b10dd2bb1f8273c">EXT_MOD_APRESENTACAO</a> <span class="keywordtype">int</span> <a class="code" href="interface__apresentacao_8h.html#a2384e63a4f0a861e435c20a405b7f4f5">remover_postagens_usuario</a>(<span class="keywordtype">int</span> <a class="code" href="structcomentario.html#abcbaf78366f12efa13e096c15b8b1bcd">identificador_autor</a>);
<a name="l00064"></a>00064 <a class="code" href="interface__apresentacao_8h.html#a5c73af4328cf75900b10dd2bb1f8273c">EXT_MOD_APRESENTACAO</a> <span class="keywordtype">int</span> <a class="code" href="interface__apresentacao_8h.html#abdd01a155f63f0e2a6c4c662b70beb04">remover_comentarios_usuario</a>(<span class="keywordtype">int</span> <a class="code" href="structcomentario.html#abcbaf78366f12efa13e096c15b8b1bcd">identificador_autor</a>);
<a name="l00065"></a>00065 <a class="code" href="interface__apresentacao_8h.html#a5c73af4328cf75900b10dd2bb1f8273c">EXT_MOD_APRESENTACAO</a> <span class="keywordtype">int</span> <a class="code" href="interface__apresentacao_8h.html#ad46e1892635c59f6e22cde8bad04b442">busca_postagem</a>(<span class="keywordtype">int</span> <a class="code" href="structcomentario.html#abcbaf78366f12efa13e096c15b8b1bcd">identificador_autor</a>);
<a name="l00066"></a>00066 <a class="code" href="interface__apresentacao_8h.html#a5c73af4328cf75900b10dd2bb1f8273c">EXT_MOD_APRESENTACAO</a> <span class="keywordtype">int</span> <a class="code" href="interface__apresentacao_8h.html#a2fb6d9fde95d88f9fa19454e6aa13359">busca_comentario</a>(<span class="keywordtype">int</span> <a class="code" href="structcomentario.html#abcbaf78366f12efa13e096c15b8b1bcd">identificador_autor</a>);
<a name="l00067"></a>00067 <a class="code" href="interface__apresentacao_8h.html#a5c73af4328cf75900b10dd2bb1f8273c">EXT_MOD_APRESENTACAO</a> <span class="keywordtype">int</span> <a class="code" href="interface__apresentacao_8h.html#a1305c3bc4c958e938707454d19def753">avaliar_postagem</a>(<span class="keywordtype">int</span> <a class="code" href="structcomentario.html#aa6656d70bef54316e7d1dcd917033ff2">identificador_postagem</a>, <span class="keywordtype">float</span> avaliacao);
<a name="l00068"></a>00068 <a class="code" href="interface__apresentacao_8h.html#a5c73af4328cf75900b10dd2bb1f8273c">EXT_MOD_APRESENTACAO</a> <span class="keywordtype">int</span> <a class="code" href="interface__apresentacao_8h.html#a19e5ea656e825b56e2629aa713a53e5d">listar_postagens</a>();
<a name="l00069"></a>00069 <a class="code" href="interface__apresentacao_8h.html#a5c73af4328cf75900b10dd2bb1f8273c">EXT_MOD_APRESENTACAO</a> <span class="keywordtype">int</span> <a class="code" href="interface__apresentacao_8h.html#a23f68d9e39053b1509d99163db7fa5c0">listar_comentarios</a>(<span class="keywordtype">int</span> <a class="code" href="structcomentario.html#aa6656d70bef54316e7d1dcd917033ff2">identificador_postagem</a>);
<a name="l00070"></a>00070 
<a name="l00071"></a>00071 
<a name="l00072"></a>00072 
<a name="l00073"></a>00073 
<a name="l00074"></a>00074 <span class="preprocessor">#endif</span>
<a name="l00075"></a>00075 <span class="preprocessor"></span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Sun Mar 3 2013 19:08:15 for Camada de Apresentacao by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
